<?php defined('SYSPATH') OR die('No direct access allowed.'); ?>
<div class="box" align="center" >
	<br /> 
	<h1 class="entry-title" align="center"  style="font-size: 13pt">
	Login เข้าใช้งานระบบ Admin.</h1>
	<br /> <br /> <br />
	<form action="<?=url::base()?>index.php/admin/doLogin" method="post" >
		<table width="300" border="0" cellpadding="2" cellspacing="2"
			class="detailTable" align="center">
			<tr>
				<td class="fixtext_label"  align="right">Username :</td>
				<td><input class="fixtext_label" type="text" name="username"
					class="widthFull" value="" /></td>
			</tr>
			<tr>
				<td class="fixtext_label"  align="right">Password :</td>
				<td><input class="fixtext_label" type="password" name="password"
					class="widthFull" value="" /></td>
			</tr>
			<tr>
				<td class="fixtext_label" valign="top" align="right">Captcha :</td>
				<td><?php 
				echo '<p>';
				echo $captcha->render(); // Shows the Captcha challenge (image/riddle/etc)
				echo '</p>';
				echo form::input('captcha_response');
				?>
				</td>
			</tr>

			<tr>
				<td class="fixtext_label"></td>
				<td align="left"><input class="form_submit" type="submit"
					value="    Login    " style="width: 100px; height: 25px;" />
				</td>
			</tr>
		</table>
		<div></div>
	</form>
	<br /> <br /> <br /> <br /> <br /> <br /> <br />
</div>
<script>
	function testCheckBox(){
		var valueSelect="";
		var cb=document.getElementsByName("cb");
		for(var i=0;i<cb.length;i++){
			if(cb[i].checked){
				valueSelect+=cb[i].value+",";
			}		
		}
		alert("checked :: "+valueSelect)
	}
	$(function() {
		
	});
</script>
